export default {
    namespaced: true,
    state: {
        dicMap: [
            {
                key:'classify',
                value:[]
            },
            {
                key: 'status',
                value: [
                    {
                        name: '在售',
                        value: 1
                    },
                    {
                        name:'停售',
                        value:0
                    }
                ]
            },
            {
                key:'delete',
                value:[
                    {
                        name:'未删除',
                        value:0
                    },
                    {
                        name:'已删除',
                        value:1
                    }
                ]
            }
        ]
    },
    mutations:{
        updateDishDicMap(state,map){
            state.dicMap.forEach(item=>{
                if(map.key == item.key){
                    item.value = map.value
                }
            })
        }
    },
    actions:{

    },
    getters:{
    
    }
}